package com.wxmit.module.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.wxmit.base.validate.AddGroup;
import com.wxmit.base.validate.UpdateGroup;
import lombok.Data;
import com.wxmit.system.base.core.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * config对象 SYS_CONFIG
 *
 * @author huangxiong
 * @date   2024-4-16
 */
@Data
@TableName("sys_config")
public class SysConfig extends BaseEntity{
  private static final long serialVersionUID=1L;
  /**
   * id
   */
  @TableId(type = IdType.AUTO)
  private Long id;
  
  /**
   * 名字
   */
  @NotNull(groups = {AddGroup.class, UpdateGroup.class},message = "名称不能为空")
  private String name;
  
  /**
   * 值
   */
  @NotNull(groups = {AddGroup.class, UpdateGroup.class},message = "配置值不能为空")
  private String value;
  
  /**
   * 分组
   */
  private String configGroup;
  
  /**
   * 类型
   * @link SysConfigTypeEnum
   */
  @NotNull(groups = {AddGroup.class, UpdateGroup.class},message = "类型不能为空")
  private String type;


  /**
   * 备注
   */
  private String remark;

  
}
